package com.hpjpw.idoapp.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

public class TaskImportVo {
    private static final long serialVersionUID = 1L;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String name;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String describe;

    /** 星星数目上限 */
    @Excel(name = "星星数目上限")
    private Long star;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @NotBlank(message = "任务名称不能为空")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @NotBlank(message = "任务描述不能为空")
    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @NotBlank(message = "星星数目上限不能为空")
    public Long getStar() {
        return star;
    }

    public void setStar(Long star) {
        this.star = star;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("name", getName())
                .append("describe", getDescribe())
                .append("star", getStar())
                .toString();
    }
}
